import React from 'react';
import { Router, Route } from 'dva/router';
import App from './containers/App';

import ItemListPage from './routes/ItemListPage'

function RouterConfig({ history }) {
    return (
        <Router history={history}>
            <Route path="/" component={App} />
            <Route path="/itemlist" component={ItemListPage}/>
        </Router>
    );
}

export default RouterConfig;
